Use this script to skip a waived product:
var j = 0;
for (var i = 0; i < 50; i++)
{
if (Event.Fields['Product.' + i] == 'Waived' && !Event.Fields['Engine.Application' + (i + 1) + '.OldPayer'] && !Event.Fields['Engine.Application' + (i+1) + '.Insured1.OldPayerProduct'] && !Event.Fields['Engine.Application' + (i + 1) + '.OldPayerProduct']) continue;
Event.Fields['Plan.' + j] = Event.Fields['Plan.' + i];
if (Event.Fields['Product.' + i] == 'Waived')
Event.Fields['Product.' + j] = 'Dropped';
else
Event.Fields['Product.' + j] = Event.Fields['Product.' + i];
Event.Fields['Description.' + j] = Event.Fields['Description.' + i];
Event.Fields['Tier.' + j] = Event.Fields['Tier.' + i];
Event.Fields['TierName.' + j] = Event.Fields['TierName.' + i];
Event.Fields['BenefitAmt.' + j] = Event.Fields['BenefitAmt.' + i];
Event.Fields['IncreaseBenefitAmt.' + j] = Event.Fields['IncreaseBenefitAmt.' + i];
Event.Fields['Option.' + j] = Event.Fields['Option.' + i];
Event.Fields['IncreaseEmployeeCost.' + j] = Event.Fields['IncreaseEmployeeCost.' + i];
Event.Fields['EffectiveDate.' + j] = Event.Fields['EffectiveDate.' + i];
Event.Fields['DedCycle.' + j] = Event.Fields['DedCycle.' + i];
Event.Fields['ERCost.' + j] = Event.Fields['ERCost.' + i];
Event.Fields['EECost.' + j] = Event.Fields['EECost.' + i];
Event.Fields['PretaxCost.' + j] = Event.Fields['PretaxCost.' + i];
Event.Fields['PosttaxCost.' + j] = Event.Fields['PosttaxCost.' + i];
Event.Fields['PriorCost.' + j] = Event.Fields['PriorCost.' + i];
Event.Fields['Status.' +j] = Event.Fields['Status.' +i];
j++;
}
for (; j < 50; j++)
{
Event.Fields['Plan.' + j] = ;
Event.Fields['Product.' + j] = ;
Event.Fields['Description.' + j] = ;
Event.Fields['TierName.' + j] = ;
Event.Fields['BenefitAmt.' + j] = ;
Event.Fields['IncreaseBenefitAmt.' + j] = ;
Event.Fields['Option.' + j] = ;
Event.Fields['IncreaseEmployeeCost.' + j] = ;
Event.Fields['EffectiveDate.' + j] = ;
Event.Fields['DedCycle.' + j] = ;
Event.Fields['ERCost.' + j] = ;
Event.Fields['EECost.' + j] = ;
Event.Fields['PretaxCost.' + j] = ;
Event.Fields['PosttaxCost.' + j] = ;
Event.Fields['PriorCost.' + j] = ;
Event.Fields['Status.' +j] = ;
}